import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false;
// 引入路由
import router from './router';
// 引入仓库
import store from './store';

// 引入全局组件
import Header from '@/components/Header';
import Footer from '@/components/Footer';
import TypeNav from '@/components/TypeNav';
import Pagination from '@/components/Pagination';
// import requests from './api/request';
// 注册全局组件
Vue.component(Header.name, Header);
Vue.component(Footer.name, Footer);
Vue.component(TypeNav.name, TypeNav);
Vue.component(Pagination.name, Pagination)

// import {reqSearchList} from '@/api';
// reqSearchList({}).then(res=>{
//   console.log(res);
// })

//引入mock文件
import '@/mock/mockServer';
// 引入swiper样式
import 'swiper/css/swiper.min.css' 
new Vue({
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus=this
  },
  router,
  // 注册仓库
  store
}).$mount('#app')
